<%@ page import="java.util.ArrayList" %>
<%@ page import="com.itheima.Student" %><%--
  Created by IntelliJ IDEA.
  User: lirui
  Date: 2020/7/20
  Time: 20:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>表格</title>
</head>
<body>
<table width="600px"  border="1px">
    <tr>
        <th>学生姓名</th>
        <th>学生年龄</th>
        <th>学生成绩</th>
    </tr>
    <%
        ArrayList<Student>  students= (ArrayList<Student>) session.getAttribute("students");
        for (Student stu : students) {
    %>
    <tr>
        <td>
        <%=stu.getUsername()%>
        </td>
        <td>
            <%=stu.getAge()%>
        </td>
        <td>
            <%=stu.getScore()%>
        </td>
        <%}%>
    </tr>









</table>





</body>
</html>
